package com.macro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.macro.pojos.pojo.UiSubject;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UiSubjectMapper extends BaseMapper<UiSubject> {

    @Insert(" INSERT INTO tb_subject_goods_relation VALUES (NULL,#{subject_id},#{goods_id},NOW(),NULL,0)")
    int addSubject(@Param("subject_id") int subId, @Param("goods_id") Integer goodsId);
}
